package com.heying.springcore.aop.jdbc.service.jdbc;

import com.heying.springcore.aop.jdbc.entity.ClassInfo;
import com.heying.springcore.aop.jdbc.repository.jdbc.JdbcClassRepository;
import com.heying.springcore.aop.jdbc.service.ClassService;
import org.springframework.stereotype.Service;

import javax.inject.Inject;

@Service
public class JdbcClassService implements ClassService {


    private JdbcClassRepository classRepository;

    @Inject
    public JdbcClassService(JdbcClassRepository classRepository) {
        this.classRepository = classRepository;
    }

    @Override
    public void insertOne(ClassInfo classInfo) {
        classRepository.insertOne(classInfo);
    }
}
